package com.my.study.designPatterns.iteratorPattern;


/**
 * 菜单
 */
public class MenuItem {


    private String name;

    private Boolean vegatable;

    private Double price;

    private String description;


    public MenuItem(String name, Boolean vegatable, Double price, String description) {
        this.name = name;
        this.vegatable = vegatable;
        this.price = price;
        this.description = description;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getVegatable() {
        return vegatable;
    }

    public void setVegatable(Boolean vegatable) {
        this.vegatable = vegatable;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }


    @Override
    public String toString() {
        return "MenuItem{" +
                "name='" + name + '\'' +
                ", vegatable=" + vegatable +
                ", price=" + price +
                ", description='" + description + '\'' +
                '}';
    }
}
